typedef HRESULT (WINAPI *TD3DXLoadSurfaceFromFileW )(
  _In_     LPDIRECT3DSURFACE9 pDestSurface,
  _In_     const PALETTEENTRY *pDestPalette,
  _In_     const RECT *pDestRect,
  _In_     LPCTSTR pSrcFile,
  _In_     const RECT *pSrcRect,
  _In_     DWORD Filter,
  _In_     D3DCOLOR ColorKey,
  _Inout_  D3DXIMAGE_INFO *pSrcInfo
);

TD3DXLoadSurfaceFromFileW  OldD3DXLoadSurfaceFromFileW;

DllExport HRESULT cc D3DXLoadSurfaceFromFileW(
  _In_     LPDIRECT3DSURFACE9 pDestSurface,
  _In_     const PALETTEENTRY *pDestPalette,
  _In_     const RECT *pDestRect,
  _In_     LPCTSTR pSrcFile,
  _In_     const RECT *pSrcRect,
  _In_     DWORD Filter,
  _In_     D3DCOLOR ColorKey,
  _Inout_  D3DXIMAGE_INFO *pSrcInfo
)
{
	return OldD3DXLoadSurfaceFromFileW  (pDestSurface, pDestPalette, pDestRect, pSrcFile,pSrcRect,Filter,ColorKey,pSrcInfo);
}
